vue3
<!-- author: xuett -->
<!-- date: 2025-03-19 09:24:40 -->
<!-- description:  -->
<template>
  <el-dialog v-model="dialogVisible" title="教育部专业简介" width="700px" @close="close"> 教育部文档 </el-dialog>
</template>

<script setup>
const state = reactive({
  dialogVisible: false
});
const { dialogVisible } = toRefs(state);

//打开弹窗
const show = () => {
  state.dialogVisible = true;
};

//关闭
const close = () => {
  state.dialogVisible = false;
};

defineExpose({ show });
</script>

<style scoped lang="scss"></style>
